// switch 语句, fallthrough 添加后将继续执行下一个 case
package main

import "fmt"

func main() {
	switch a := 1; {
	case a >= 0:
		fmt.Printf("%d >= 0\n", a)
		fallthrough
	case a >= 1:
		fmt.Printf("%d >= 1\n", a)
	default:
		fmt.Printf("default %d\n", a)
	}
}